package com.leo.corn.job;

import org.quartz.*;

import java.time.LocalDateTime;

/**
 * @ClassName CronJob
 * @Description
 * @Author wangss
 * @date 2021.07.15 10:11
 * @Version 1.0
 */
public class CronJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        JobKey key = jobExecutionContext.getJobDetail().getKey();
        JobDataMap dataMap = jobExecutionContext.getMergedJobDataMap();

        System.out.println("job = [" + key + "], date = [" + LocalDateTime.now() + "]");
    }
}
